# coding: utf-8
#

from enum import Enum, unique

@unique
class JobStatus(Enum):
  Initialing = 1
  Initialed = 2
  Completed = 3
  CompletedWithError = 4
  Unkown = 5

class JobType(Enum):
    def __new__(cls, job_type):
        obj = object.__new__(cls)
        obj.job_type = job_type
        return obj

    def __str__(self) -> str:
        return self.value
    
    AddFriendInGroup = "adfg"
    AddFriendFromExcel = "adfe"

@unique
class TaskStatus(Enum):
    def __new__(cls, job_type):
        obj = object.__new__(cls)
        obj.job_type = job_type
        return obj

    def __str__(self) -> str:
        return self.value
    App_Initialed = "App_Initialed"
    
    Task_Excuting = "Task_Excuting"
    Task_Completed = "Task_Completed"
    Task_Completed_Error = "Task_Completed_Error"
    
    Device_Connecting_Error = "Connection_Error"
    Device_Completed = "Device_Completed"
    Task_Limitation = "task_limitation"
